package homework.clazz.Demo5;

public class App8_10 {
    public static void main(String[] args)
{
Shape rect =new Rectangle("长方形",6.5,10.3);
System.out.print("；面积="+rect.getArea());
System.out.println("；周长="+rect.getLength());
Shape circle=new Circle("圆",10.2);
System.out.print("；面积="+circle.getArea());
System.out.println("；周长="+circle.getLength());
Shape A=new Tiangle("三角形",5,3);
System.out.println("面积="+A.getArea());
    System.out.println("周长="+A.getLength());
}
}

